﻿<UserControl x:Class="TechNewLogic.GraphIT.Hv.Vertical.VSectionLabel"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"
		d:DesignHeight="300" d:DesignWidth="300" x:Name="root" VerticalAlignment="Top"
		HorizontalAlignment="Right" x:ClassModifier="internal">

	<!-- Die Height des gesamten UserControls ist wichtig für's Zentrieren. Sie wird in den SectionLabelCreationStrategies gesetzt -->

	<DockPanel DataContext="{Binding ElementName=root}" VerticalAlignment="Center">
		<Rectangle Height="2" Width="5" VerticalAlignment="Center"
				Fill="{DynamicResource GeneralForeground}" DockPanel.Dock="Right" />
		<TextBlock Text="{Binding Text}" Foreground="{DynamicResource GeneralForeground}"
				ToolTip="{Binding Text}" VerticalAlignment="Center" Margin="0,0,2,0"
				TextTrimming="CharacterEllipsis" Background="{DynamicResource GeneralBackground}" />
	</DockPanel>

</UserControl>
